package com.ceair.flight.refund.location.dao;


import com.ceair.flight.refund.location.model.FlightOrderDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IFlightOrderDao {

    List<FlightOrderDO> getFlightOrderDetailListByOrderNo(String orderNo);

    FlightOrderDO getByFlightOrderNo(String flightOrderNo);

    List<FlightOrderDO> getFlightOrderListByOrderNo(String orderNo);

    /**
     * 乘客状态
     * paxSt: 1待开票、2已开票、3已退票、4已改期、5已升舱、6已挂起
     *
     * @param orderNo
     * @param paxSt
     * @return
     */
    List<FlightOrderDO> getFlightOrderDetail(@Param(value = "orderNo") String orderNo, @Param(value = "paxSt") Integer paxSt);

    String getFfpNo(String flightOrderNo);

    List<FlightOrderDO> getFlightOrderDOs(FlightOrderDO flightOrderDO);

    /**
     * 通过票号查询机票订单
     *
     * @param tktNo 票号
     * @return
     */
    FlightOrderDO getByTicketNo(String tktNo);
}
